package com.avecsys.quotemanager.pojos;

import java.sql.Blob;

/**
 * @author Sam Sundar K
 */
public class QuoteTemplateMasterPojo extends BasePojo implements java.io.Serializable
{

	private Long templateId;

	private String templateName;

	private String templateDescription;

	private SupplierMasterPojo supplierMasterPojo;

	private Blob fileContent;

	private String fileName;

	private String contentType;

	/**
	 * @return the contentType
	 */
	public String getContentType()
	{
		return contentType;
	}

	/**
	 * @return the fileContent
	 */
	public Blob getFileContent()
	{
		return fileContent;
	}

	/**
	 * @return the fileName
	 */
	public String getFileName()
	{
		return fileName;
	}

	@Override
	public String getPkColumnName()
	{
		return "templateId";
	}

	/**
	 * @return the supplierMasterPojo
	 */
	public SupplierMasterPojo getSupplierMasterPojo()
	{
		return supplierMasterPojo;
	}

	/**
	 * @return the templateDescription
	 */
	public String getTemplateDescription()
	{
		return templateDescription;
	}

	/**
	 * @return the templateId
	 */
	public Long getTemplateId()
	{
		return templateId;
	}

	/**
	 * @return the templateName
	 */
	public String getTemplateName()
	{
		return templateName;
	}

	@Override
	public boolean isPersisted()
	{
		if (templateId == null || templateId.longValue() == 0)
		{
			return false;
		}
		else
		{
			return true;
		}
	}

	/**
	 * @param contentType the contentType to set
	 */
	public void setContentType(String contentType)
	{
		this.contentType = contentType;
	}

	/**
	 * @param fileContent the fileContent to set
	 */
	public void setFileContent(Blob fileContent)
	{
		this.fileContent = fileContent;
	}

	/**
	 * @param fileName the fileName to set
	 */
	public void setFileName(String fileName)
	{
		this.fileName = fileName;
	}

	/**
	 * @param supplierMasterPojo the supplierMasterPojo to set
	 */
	public void setSupplierMasterPojo(SupplierMasterPojo supplierMasterPojo)
	{
		this.supplierMasterPojo = supplierMasterPojo;
	}

	/**
	 * @param templateDescription the templateDescription to set
	 */
	public void setTemplateDescription(String templateDescription)
	{
		this.templateDescription = templateDescription;
	}

	/**
	 * @param templateId the templateId to set
	 */
	public void setTemplateId(Long templateId)
	{
		this.templateId = templateId;
	}

	/**
	 * @param templateName the templateName to set
	 */
	public void setTemplateName(String templateName)
	{
		this.templateName = templateName;
	}

}
